package com.qingzhuge.limiter.support;


import com.qingzhuge.limiter.dto.RateLimiterForm;
import com.qingzhuge.limiter.exception.RateLimiterException;

/**
 * @author zeroxiao
 * @date 2019/9/5 15:39
 */
public interface RateLimiterCall {
    /**
     * 业务需求方调用实际限流数据
     * @param callbackClass 限流业务回调实现
     * @param form 限流业务
     * @throws RateLimiterException 触发限流
     */
    void call(Class<? extends RateLimiterCallback> callbackClass, RateLimiterForm form) throws RateLimiterException;
}
